package com.cz.lanlin;

import cn.hutool.core.codec.Base64;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;

public class TestTeacher {
    public static void main(String[] args) {
        String url = "http://127.0.0.1:8080/ekp/api/sys/teacher/getTeacherInfo";

        HttpResponse response = HttpRequest.post(url)
                .header("Content-Type", "application/json")
                .header("Authorization", "Basic "+ Base64.encode("openapi:111111"))
                .body("我爱你")
                .execute();

        System.out.println(response.body());
    }
}
